package com.zcx.merchantorder.http.subscriber;

import android.text.TextUtils;

import com.google.gson.JsonParseException;
import com.zcx.merchantorder.R;
import com.zcx.merchantorder.base.BaseActivity;

import org.json.JSONException;

import java.io.InterruptedIOException;
import java.net.ConnectException;
import java.net.UnknownHostException;

import rx.Subscriber;

/**
 * @Description: 请求错误的封装和进度条显示与消失的封装
 * @Author: zcx
 * @CreateDate: 2019/3/3 16:20
 */
public abstract class CommonSubscriber<T> extends Subscriber<T> {

    private BaseActivity activity;
    private String mErrorMsg;

    public CommonSubscriber() {

    }

    protected CommonSubscriber(BaseActivity act){
        this.activity = act;
    }

    protected CommonSubscriber(BaseActivity act, String errorMsg){
        this.activity = act;
        this.mErrorMsg = errorMsg;
    }


    @Override
    public void onCompleted() {

    }

    @Override
    public void onError(Throwable e) {

    }

    @Override
    public void onNext(T t) {

    }
}
